#include "ATL.h"

#include "debugstreams.h"
#include "CColor.h"

#include <vector>
#include <set>
#include <algorithm>
#include <boost/assign/list_of.hpp>

using namespace std;
using namespace boost::assign;

int main()
{
  vector<int> vec;
  vec = list_of(10)(20)(30)(40)(50)(60)(70)(71)(72)(73)(75);

  set<double> ens;
  ens = list_of(-.15)(2.6)(76.6)(12)(-128)(1.15)(.0)(.6)(58)(53);

  EcrireElementConteneur<int> sortie1( &warning() );

  for_each( vec.begin(), vec.end(), sortie1 );
  cout << endreq;

  EcrireElementConteneur<double> sortie2( &error() );

  for_each( ens.begin(), ens.end(), sortie2 );
  cout << endreq;
}
